import qs from 'qs'
import { Toast } from 'antd-mobile'

let judgmentObj = (obj)=>{
    return obj !== null && typeof obj == "object"
}

/* 核心方法 */
const http = (config) => {
    if(!judgmentObj(config)) config = {}
    config = Object.assign({} , config)
}

export default http